package summary.collection;

import java.util.HashMap;
import java.util.Random;

/**
 * @AUTHOR LYF
 * @DATE 2022/3/5
 * @VERSION 1.0
 * @DESC
 */
public class HashMapDemo {
    public static void main(String[] args) {
        HashMap hashMap = new HashMap();
        hashMap.put(1,3);
        hashMap.put(3,2);
        System.out.println(hashMap.values().toArray()[new Random().nextInt(hashMap.size())]);



    }
}
